home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
os2
/
cenvi2.arj
/
DIRSTAT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-06
|
562b
|
22 lines
@echo OFF
REM DirStat.cmd - Use Find#.cmm to parse directory listings and output
REM statistics about the current directory.
SETLOCAL
set DELDIR=
set FIND_TEMP_FILE=DSTemp.cmd
dir | find "file(s)" | cenvi Find#.cmm
call %FIND_TEMP_FILE%
set FILE_COUNT=%NUMBER%
if exist %FIND_TEMP_FILE% del %FIND_TEMP_FILE%
dir | find "file(s)" | cenvi Find#.cmm -1
call %FIND_TEMP_FILE%
ECHO The current directory contains %FILE_COUNT% files and uses %NUMBER% bytes.
REM Clean-up
if exist %FIND_TEMP_FILE% del %FIND_TEMP_FILE%
ENDLOCAL